package com.haixiaoke.saas.order.domain;

import java.math.BigDecimal;
import java.util.List;

import com.haixiaoke.saas.common.annotation.Excel;
import com.haixiaoke.saas.common.core.domain.BaseEntity;
import lombok.*;

/**
 * 订单收费项目及价格对象 biz_order_charge_item
 *
 * @author panda
 * @date 2024-04-03
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class OrderChargeItem extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 收费id
     */
    private Long chargeId;

    /**
     * 订单id
     */
    @Excel(name = "订单id")
    private String orderId;

    /**
     * 关联订单
     */
    @Excel(name = "关联订单")
    private String linkedOrderId;

    /**
     * 房屋配置id
     */
    private Long allocationId;

    /**
     * 房屋id
     */
    @Excel(name = "房屋id")
    private String houseId;

    /**
     * 收费类型（1房费,2押金）
     */
    @Excel(name = "收费类型", readConverterExp = "1=房费,2=押金")
    private String chargeType;

    /**
     * 购买的数量
     */
    @Excel(name = "购买的数量")
    private BigDecimal purchaseQuantity;

    /**
     * 单项金额统计
     */
    @Excel(name = "单项金额统计")
    private BigDecimal itemSum;

    /**
     * 多项金额总额
     */
    @Excel(name = "多项金额总额")
    private BigDecimal totalPrice;

    /**
     * 续租订单的收费项集合
     */
    private List<OrderChargeItem> orderChargeItemList;
}
